﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Assets.Scripts.LDS
{
    public class MyScrollbar : MonoBehaviour
    {
        //消息滑动条
        public Scrollbar chatScrollBar;

        private void OnGUI()
        {
            StartCoroutine("InsSrollBar");
        }

        IEnumerator InsSrollBar()
        {
            if (TextDialog.isLogUpdated) 
            {
                yield return new WaitForSeconds(0.5f);
                chatScrollBar.value = 0;
                TextDialog.isLogUpdated = false;
            }
            
        }
    }
}
